专利摘要:
Disclosed are a method and a device for converting a two-dimensional image into a three-dimensional image, and a three-dimensional imaging system. The method comprises: obtaining a two-dimensional image to be processed; performing perspective transformation on the two-dimensional image, so as to obtain a left eye image and a right eye image respectively; adjusting, according a result of the perspective transformation, a distance between the left eye image and the right eye image; and combining the distance-adjusted left and right eye images. Embodiments of the present invention perform perspective transformation on a two-dimensional image to be processed, so as to create binocular parallax images, and perform distance adjustment on the perspective-transformed left and right eye images, so as to form a binocular parallax-creation convergence angle, such that images observed by the naked eye are at different depths, enabling viewing of different 3D effects. By performing image transformation on a two-dimensional image, which is not related to the resolution and clarity of the image, the image quality of 3D-imaged images can be made the same as that of the original two-dimensional image without affecting a 3D imaging effect.
公开号:ES2813425A1
申请号:ES202090055
申请日:2019-05-06
公开日:2021-03-23
发明作者:Yi Zhang;To Chin
申请人:Scivita Med Tech Co Ltd;
IPC主号:
专利说明:

[0001] METHOD AND DEVICE TO CONVERT A 2D IMAGE TO A 3D IMAGE, AND
[0003] FIELD OF THE PRESENT DISCLOSURE
[0005] The present disclosure relates to the field of image processing technology, in particular to a method and a device for converting a two-dimensional (2D) image to a three-dimensional (3D) image, and to a 3D imaging system.
[0007] BACKGROUND TO THIS DISCLOSURE
[0009] When both eyes of a human being look at an object one way, the perception of the thickness of the objects seen and the depth or distance of space and the like can be subjective. This is known as stereoscopic vision. The main reason is that the images of the same object seen are not exactly identical in the retinas of both eyes, since the left eye sees more of the left side of the object from the left while the right eye sees more of the right side of the object. from the right; and after the image information from both eyes is processed through a primary visual center, a stereoscopic image of the object is generated.
[0011] With the development of display technology and digital technology, imitating the stereoscopic vision of human eyes by using electronic products has become a research benchmark. In the prior art, users can view a 3D image only if a 3D camera device is employed. Most existing 3D camera devices work by mimicking the structure of human eyes, each of which comprises two cameras, where an image acquired by one of the cameras corresponds to an image of the human left eye, and an image acquired by the other camera corresponds to an image of the human right eye; then, the left eye image and the right eye image can be synthesized with an image processing means to form the 3D image.
[0012] In the prior art, when the 3D camera device is used to acquire the image, two polarizers with polarization directions perpendicular to each other are generally arranged in front of a lens of each of the cameras, to obtain images corresponding to the left eye and the left eye. right eye. Since each camera acquires the image in only one polarization direction, this assumes that the resolution and definition of the entire image will be half of the actual image, thereby altering the 3D imaging effect.
[0013] SUMMARY OF THIS DISCLOSURE
[0015] In view of this, the embodiments of the present disclosure provide a method and device for converting the 2D image to a 3D image, as well as an image processing means for solving the problem of poor 3D imaging effect.
[0017] In a first aspect, an embodiment of the present disclosure provides a method for converting a 2D image to a 3D image, where the method comprises the following steps:
[0019] acquire a 2D image to be processed;
[0021] carry out perspective transformation on the 2D image to be processed to obtain a left eye image and a right eye image, respectively, where the perspective transformation refers to mapping the 2D image to be processed according to a ruler preset;
[0023] adjusting the distance between the left eye image and the right eye image according to the result of the perspective transformation; Y
[0025] synthesize the left eye image and the right eye image after adjusting the distance.
[0027] In accordance with the embodiment of the present disclosure, binocular parallax images are created by performing a perspective transformation on the 2D image to be processed for get a stereoscopic view; the distance between the left eye image and the right eye image after perspective transformation is adjusted to form a binocular parallax and create a convergence angle, so that the images observed by naked eyes are at different depths, can be observed well see different stereoscopic effects. That is, the image transformation is carried out on the 2D image without affecting the resolution and definition of the image, so that the quality of the 3D image is the same as that of the original 2D image and the effect 3D imaging is not affected.
[0029] In combination with the first aspect, the step of carrying out the transformation of the perspective on the 2D image to be processed comprises, in a first mode of implementation of the first aspect:
[0031] aligning the 2D image to be processed on an image template and extracting the sizes of the 2D image to be processed;
[0033] sequentially carrying out linear scaling of the sizes of the respective sides according to the preset rule, to obtain a first image;
[0035] reflecting the first image to obtain a second image, where the first image serves as the left eye image and the second image serves as the right eye image; or, the first image serves as the right eye image and the second image serves as the left eye image.
[0037] In accordance with the embodiment of the present disclosure, the 2D image is converted into two images corresponding to the left eye and the right eye by linear scaling, that is, the 2D image without parallax is converted into the left eye image and the image of right eye with parallax; and the conversion process involves only the image sizes and is irrelevant to the image quality, so the left eye image and the right eye image formed by linear scaling have the same quality as the original 2D image. The picture of The left eye and the right eye image can be formed through the conversion method provided by the present embodiment of the present disclosure, while ensuring that there are no changes in image quality.
[0039] In combination with the first mode of implementation of the first aspect, the process of carrying out the linear scaling sequentially on the sizes of the respective sides in a sequence according to the preset rule comprises, in a second mode of implementation of the first aspect:
[0041] scan line by line the 2D image to be processed; Y
[0043] will sequentially perform linear scaling on the respective lines of the image.
[0045] According to the embodiment of the present disclosure, the 2D image to be processed is scanned line by line, that is, linear scaling is carried out sequentially on each line to reduce the amount of data processed, so that the conversion of the 2D image can be carried out in real time.
[0047] In combination with the first implementation of the first aspect, the process of adjusting the distance between the left eye image and the right eye image according to the result of the perspective transformation comprises, in a third mode of implementation of the first appearance:
[0049] aligning the left eye image and the right eye image on the image template at the same time; Y
[0051] translating the left eye image or the right eye image in a first direction so that the distance between the left eye image and the right eye image is a preset distance.
[0053] In accordance with the embodiment of the present disclosure, the left eye image and the image Right eye are formed using the same image template; and the left eye image and the right eye image are translated to create the binocular parallax and the convergence angle, so that the conversion efficiency is improved.
[0055] In combination with the first aspect, in a fourth mode of implementation of the first aspect the 2D image to be processed is an image frame of a video sequence.
[0057] The method for converting the 2D image to a 3D image provided by the embodiment of the present disclosure can convert an image frame of the video sequence and a single 2D image, and has wide application value.
[0059] In a second aspect, an embodiment of the present disclosure provides a device for converting a 2D image to a 3D image, comprising:
[0061] an acquisition module to acquire the 2D image to be processed;
[0063] a perspective transformation module to carry out perspective transformation on the 2D image to be processed to obtain a left eye image and a right eye image, respectively, where perspective transformation refers to mapping the image 2D to be processed according to a preset rule;
[0065] an adjustment module for adjusting the distance between the left eye image and the right eye image in accordance with the result of the perspective transformation; Y
[0067] a synthesizer module to synthesize the left eye image and the right eye image after adjusting the distance.
[0069] In accordance with the embodiment of the present disclosure, binocular parallax images are created to achieve stereoscopic vision by performing perspective transformation on the 2D image to be processed; the distance between the left eye image and the right eye image after perspective transformation is adjusted to form a binocular parallax and create a convergence angle, so that the images observed by naked eyes are at different depths, thus being able to observe different stereoscopic effects. That is, the image transformation is carried out on the 2D image without affecting the resolution and definition of the image, so that the quality of the 3D image is the same as that of the original 2D image and the effect 3D imaging is not affected.
[0071] In combination with the second aspect, in a first mode of implementation of the second aspect, the perspective transformation module comprises:
[0073] an extraction unit for aligning the 2D image to be processed on an image template and extracting the sizes of the 2D image to be processed;
[0075] a linear scaling unit for sequentially carrying out linear scaling of the sizes of the respective sides according to the preset rule, to obtain a first image; Y
[0077] a duplicating unit for reflecting the first image and obtaining a second image, where the first image acts as the left eye image and the second image acts as the right eye image; or, the first image serves as the right eye image and the second image serves as the left eye image.
[0079] In a third aspect, an embodiment of the present disclosure provides an image processing means, comprising:
[0081] a memory and a processor, which are communicatively connected to each other, where the instructions from the computer are stored in the memory; and the processor implements the method for converting the 2D image to a 3D image in the first aspect, or in any mode of implementation of the first aspect, executing the instructions of the equipment.
[0082] In a fourth aspect, an embodiment of the present disclosure provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer instructions to enable a computer to implement the method of converting the 2D image to a 3D image, in the first aspect or in any mode of implementation of the first aspect.
[0084] In a fifth aspect, an embodiment of the present disclosure provides a 3D imaging system, comprising:
[0086] an image acquisition means, having a single lens as a lens for acquiring images;
[0088] the image processing means of the third aspect of the present disclosure, which is electrically connected to the image acquisition means, to convert the 2D image to the 3D image; Y
[0090] the image display means, which is electrically connected to the image processing means to display the 3D image.
[0092] In the 3D imaging system provided by the embodiment of the present disclosure, the lens of the image acquisition means includes a single lens, so that the average image acquisition volume as a whole is reduced; In addition, the single lens imaging means needs a single data line to transmit the acquired image, which can reduce the internal diameter of a connecting line between the imaging means and the image processing means. , so that the 3D imaging system can be applied to small human organs to form 3D images of human organs, thus further improving the scope of application of the 3D imaging system.
[0094] BRIEF DESCRIPTION OF THE DRAWINGS
[0096] The features and advantages of the present disclosure will be more clearly understood with reference to the accompanying drawings. The accompanying drawings are illustrative and should not be construed. as a limitation of this disclosure, where
[0098] Fig. 1 shows a specific schematic flow diagram of a method for converting a 2D image to a 3D image, in an embodiment of the present disclosure;
[0100] Fig. 2 shows another specific schematic flow diagram of the method of converting a 2D image to a 3D image, in the embodiment of the present disclosure;
[0102] Fig. 3 shows another specific schematic flow diagram of the method of converting a 2D image to a 3D image, in the embodiment of the present disclosure;
[0104] Fig.4 shows a specific schematic structural diagram of a device for converting a 2D image to a 3D image, in an embodiment of the present disclosure;
[0106] Fig. 5 shows another specific schematic structural diagram of the device for converting a 2D image to a 3D image, in the embodiment of the present disclosure;
[0108] Fig. 6 shows a specific schematic structural diagram of the image processing means, in one embodiment of the present disclosure; Y
[0110] Fig. 7 shows a specific schematic structural diagram of a 3D imaging system, in one embodiment of the present disclosure.
[0112] DESCRIPTION OF THE EMBODIMENTS
[0114] In order to clarify the purposes, technical solutions and advantages of the embodiments of the present disclosure, the technical solutions of the embodiments of the present disclosure will be clearly and thoroughly described with reference to the accompanying drawings of embodiments of the present disclosure. Apparently, the described embodiments are a part of the present disclosure and not all of the embodiments thereof. All other embodiments obtained by those skilled in the art from the embodiments described in the present disclosure, without contribution to the creative process, are within the scope of protection of the present divulgation.
[0116] According to the method for converting a 2D image to a 3D image, the binocular parallax images, that is, a left eye image and a right eye image, are created to achieve stereoscopic vision by transforming the perspective of the 2D image; adjusts the distance between the left eye image and the right eye image to create a convergence angle; and by using the binocular parallax images in combination with the convergence angle, a 3D image can be formed.
[0118] An embodiment of the present disclosure provides a method of converting a 2D image to a 3D image, as shown in Fig. 1, comprising the following steps:
[0120] S11, acquire a 2D image to be processed;
[0122] The 2D image to be processed, acquired by a device to convert a 2D image into a 3D image, can be a 2D photo, it can also be an image frame of a video sequence, and it can also be obtained by acquiring videos in real time and extracting each image frame of the videos, as long as it can be ensured that the device to convert a 2D image into a 3D image can acquire the 2D image to be processed.
[0124] S12, carry out a perspective transformation on the 2D image to be processed to obtain a left eye image and a right eye image, respectively.
[0126] Perspective transformation refers to mapping the 2D image to be processed according to a preset rule. The device for converting a 2D image to a 3D image maps the 2D image to be processed according to the preset rule, that is, the left eye image and the right eye image are formed by image processing according to the transformation of the perspective based on the 2D image to be processed. The predefined rule is used to represent a form of perspective transformation, eg. ex. a transformed image will have a near end that looks large and a far end that looks looks small, or a perspective image is calculated using a formula.
[0128] 513, adjusting the distance between the left eye image and the right eye image according to the result of the perspective transformation;
[0130] The device for converting a 2D image to a 3D image adjusts the distance between the left eye image and the right eye image formed after the perspective transformation, to create a convergence angle.
[0132] The inventors have discovered, through a large number of experiments, that the corresponding convergence angle changes as the distance between the images changes. For example, as shown in Fig. 2, the relationship between the convergence angle and the distance between the left eye image and the right eye image is described. As shown in Fig. 2a), when the convergence angle is a1, the distance between the left eye and the right eye is relatively small; and as shown in Fig. 2b), when the convergence angle is a2, the distance between the left eye and the right eye is relatively large. In other words, the angle of convergence will change accordingly with the change in the distance between the left eye and the right eye. Therefore, in the present disclosure the angle of convergence is created by adjusting the distance between the left eye and the right eye.
[0134] 514, synthesize the left eye image and the right eye image after adjusting the distance;
[0136] The device to convert a 2D image into a 3D image synthesizes the left eye image and the right eye image after adjustment, that is, making use of the binocular parallax created through the transformation of the image and the convergence angle, the left eye image and the right eye image are synthesized after adjusting the distance and then sent to an image display medium, for subsequent viewing of the 3D image. Subsequent display of the image involves adjusting the polarization directions of the left eye image and the right eye image to make the polarization directions of the two images perpendicular to each other, so that the user can view a 3D image by wearing 3D glasses during use. Other ways can also be used to adjust the polarization directions, as long as the polarization directions of the two images, which are viewed respectively through both eyes of a person, are perpendicular to each other.
[0138] In accordance with the embodiment of the present disclosure, binocular parallax images are created to achieve stereoscopic vision by performing perspective transformation on the 2D image to be processed. Additionally, the distance between the left eye image and the right eye image after the perspective transformation is adjusted to form a binocular parallax and create the convergence angle, so that the images observed by naked eyes are at different depths, thus being able to see different stereoscopic effects. In other words, the image transformation is carried out on the 2D image without affecting the resolution and definition of the image, so that the quality of the 3D image is the same as that of the original 2D image and the 3D imaging effect is not affected.
[0140] An embodiment of the present disclosure also provides a method for converting a 2D image to a 3D image, as shown in Fig. 3, where the method comprises the following steps:
[0142] S21, acquire a 2D image to be processed;
[0144] In the present embodiment, the 2D image to be processed is an image frame of a video sequence, where a device for converting a 2D image into a 3D image sequentially extracts each image frame from the video sequence, such as the 2D image to be processed. . Therefore, the method provided in the present embodiment can convert the video stream acquired by the device into a real-time 3D video.
[0145] S22, performing perspective transformation on the 2D image to be processed to obtain a left eye image and a right eye image, respectively;
[0147] Perspective transformation refers to mapping the 2D image to be processed according to a preset rule. In the present embodiment the device for converting a 2D image into a 3D image is provided with an image template, to normalize the 2D image to be processed.
[0149] Specifically, step S22 comprises the following steps:
[0151] S221, align the 2D image to be processed on the image template and extract the sizes of the 2D image to be processed;
[0153] After acquiring the 2D image to be processed, the device for converting a 2D image to a 3D image aligns the 2D image to be processed on the image template, and performs uniform scaling on the 2D image to be processed to ensure that the image 2D to be processed does not exceed the field of the image template.
[0155] After aligning the 2D image to be processed on the image template, the sizes of the 2D image to be processed are extracted to represent the sizes of the respective sides of the 2D image to be processed.
[0157] S222, sequentially carry out linear scaling of the sizes according to the preset rule, to obtain a first image;
[0159] in Fig. 4 the principle of linear scaling is shown. Perspective transformation comprises: using a left side of an original image as a rotary axis, rotating the original image into a screen at a certain angle, and rotating the original image off the screen on the screen. same angle, in order to form a center image and a rightmost image in Fig. 4, respectively. In the present embodiment, a linear scaling of the sizes is carried out on the 2D image to be processed so that the eye image scaled left and right eye image present the effect shown in Fig. 4, specifically comprising the following steps:
[0161] 1) scan line by line the 2D image to be processed;
[0163] the device for converting a 2D image to a 3D image scans line by line the 2D image to be processed while it is aligned on the image template, to obtain the sizes of the respective lines of the 2D image to be processed.
[0165] 2) sequentially performing linear scaling on the respective image lines;
[0167] the device for converting a 2D image to a 3D image performs linear scaling on the sizes of the respective lines of the 2D image to be processed according to the principle that one end looks large and the other end looks small, in order to obtain a first scaled image. The amount of processed data is reduced by sequentially carrying out linear scaling on the respective lines, so that the 2D image conversion can be carried out in real time.
[0169] S223, mirror the first image to obtain a second image.
[0171] The device for converting a 2D image to a 3D image reflects the first image to obtain the second image, that is, the first image is reflected in the vertical direction to obtain the second image.
[0173] The first image is the left eye image and the second image is the right eye image; or, the first image is the right eye image and the second image is the left eye image.
[0175] S23, adjust the distance between the left eye image and the right eye image according to the result of the perspective transformation;
[0176] The device for converting a 2D image to a 3D image adjusts the distance between the left eye image and the right eye image after forming the left eye image and the right eye image and superimposing the left eye image and the image right eye, in order to generate double views of the two images.
[0178] S24, synthesize the left eye image and the right eye image after adjusting the distance;
[0180] The device for converting a 2D image to a 3D image re-superimposes the double views of the left eye image and the right eye image after adjusting the distance, to display the 3D image on the image display medium.
[0182] In the present embodiment, compared to the method for converting a 2D image to a 3D image of the embodiment shown in Fig. 1, the 2D image is converted into two images corresponding to the left eye and the right eye by linear scaling of the image. 2D i.e. the 2D image without parallax is converted to the left eye image and the right eye image with parallax, where the conversion process only involves the image sizes and is irrelevant to the image quality so that the left eye image and the right eye image formed by linear scaling have the same quality as the original 2D image. The left eye image and the right eye image can be formed through the conversion method provided by the present embodiment of the present disclosure, while ensuring that there are no changes in image quality.
[0184] A further method of converting a 2D image to a 3D image is also provided in accordance with one embodiment of the present disclosure. As shown in Fig. 5, the method comprises the following steps:
[0186] S31, acquire a 2D image to be processed, which is the same as step S21 of the embodiment shown in Fig. 3 and therefore will not be detailed again.
[0187] 532, carry out the perspective transformation on the 2D image to be processed to obtain a left eye image and a right eye image, respectively, which is the same as step S22 of the embodiment shown in Fig. 3 and by therefore it will not be detailed again.
[0189] 533, adjust the distance between the left-eye image and the right-eye image according to the result of the perspective transformation.
[0191] In the present embodiment, the distance between the left eye image and the right eye image is adjusted using an image template to normalize the 2D image to be processed, specifically comprising the following steps:
[0193] 5331, aligning the left eye image and the right eye image on the image template simultaneously;
[0195] the device for converting a 2D image to a 3D image simultaneously aligns the left eye image and the right eye image on the image template, that is, the left eye image and the right eye image are translated based on the image template, which can ensure a better translation effect and improve the 2D image conversion efficiency without increasing the amount of processed data.
[0197] 5332, translate the left eye image or the right eye image in the first direction so that the distance between the left eye image and the right eye image is a preset distance.
[0199] In the present embodiment, the first direction is a horizontal direction, and one of the left-eye image or the right-eye image aligned with the image template is translated in the horizontal direction, or the left eye image is shifted in opposite directions. left eye and right eye image simultaneously, so that the distance between the left eye image and the right eye image is a preset distance, where the preset distance can be specifically set according to the size of the medium of concrete visualization.
[0201] S34, synthesize the left eye image and the right eye image after adjusting the distance, which is the same as step S24 of the embodiment shown in Fig. 3 and therefore will not be detailed again.
[0203] In the present embodiment, compared to the method for converting a 2D image to a 3D image of the embodiment shown in Fig. 3, the left eye image and the right eye image are formed using the same image template; and the left eye image and the right eye image are translated to create the binocular parallax and the convergence angle, thereby improving the conversion efficiency.
[0205] An embodiment of the present disclosure also provides a device for converting a 2D image to a 3D image. As shown in Fig. 6, the device comprises:
[0207] an acquisition module 41 for acquiring a 2D image to be processed;
[0209] a perspective transformation module 42 to carry out the perspective transformation on the 2D image to be processed and obtain a left eye image and a right eye image, respectively, where perspective transformation refers to mapping the 2D image to be processed according to a preset rule;
[0211] an adjustment module 43 for adjusting the distance between the left eye image and the right eye image in accordance with the result of the perspective transformation; Y
[0213] a synthesizer module 44 for synthesizing the left eye image and the right eye image after adjusting the distance.
[0215] According to the device for converting a 2D image to a 3D image provided in the embodiment of the present disclosure, binocular parallax images are created to achieve stereoscopic vision by carrying out perspective transformation on the image. 2D to process; the distance between the left eye image and the right eye image after perspective transformation is adjusted to form a binocular parallax and create a convergence angle, so that the images observed by naked eyes are at different depths, can be observed well see different stereoscopic effects. In other words, the image transformation is carried out on the 2D image without affecting the resolution and definition of the image, so that the quality of the 3D image is the same as that of the original 2D image and the 3D imaging effect is not affected.
[0217] In some optional implementation modes of the present embodiment, as shown in Fig. 7, the perspective transformation module 42 comprises:
[0219] an extraction unit 421 for aligning the 2D image to be processed on an image template and extracting the sizes of the 2D image to be processed;
[0221] a linear scaling unit 422 for sequentially carrying out linear scaling of the sizes according to a preset rule, to obtain a first image; Y
[0223] a duplicating unit 423 for reflecting the first image and obtaining a second image, where the first image serves as the left eye image and the second image serves as the right eye image; or, the first image is the right eye image and the second image is the left eye image.
[0225] An embodiment of the present disclosure also provides an image processing means. As shown in Fig. 8, the image processing means may comprise a processor 51 and a memory 52, where the processor 51 and the memory 52 may be connected via a bus or other ways, eg. ex. through the bus of Fig. 8.
[0226] Processor 51 can be a central processing unit (CPU). Processor 51 can also be other types of general purpose processors, a digital signal processor (DSP), application-specific integrated circuits (ASIC), field programmable gate arrays (FPGAs) or other programmable logic devices, discrete transistor or gate logic devices, discrete hardware components and other types of chips, or a combination of the previous chips.
[0228] As a non-transient computer-readable storage medium, memory 52 can be used to store non-transient software programs, programs, and computer-executable non-transient modules, such as program instructions / modules (such as acquisition module 41, acquisition module 41). perspective transformation 42, adjustment module 43 and synthesizer module44 shown in Fig. 6) corresponding to the method of converting a 2D image to a 3D image of the embodiment of the present disclosure. Processor 51 executes various functional applications and processor data processing by executing software programs, instructions, and non-transient modules stored in memory 52, that is, the method for converting a 2D image to a 3D image of the previous realization of the method.
[0230] The memory 52 can comprise a memory area for programs and a memory area for data, where the memory area for programs can store the application programs necessary for the operation of the system and at least one function; and the memory area for data can store the data created by the processor 51. In addition, the memory 52 can include a high speed random access memory and can also include a non-transient memory, such as at least one memory device of disk, a flash memory device, or other non-transient solid-state memory devices. In some embodiments, memory 52 may optionally include memories remotely arranged in relation to processor 51; and these remote memories can be connected to the processor 51 through a network. Some examples of the aforementioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0231] The one or more modules are stored in memory 52; and being implemented by the processor 51, the method for converting a 2D image into a 3D image of the embodiments shown in Fig. 1, Fig. 3 and Fig. 5 is implemented.
[0233] The specific details of the above image processing means can be understood with reference to the corresponding descriptions and effects of the embodiments shown in Fig. 1, Fig. 3 and Fig. 5, and therefore will not be repeated here.
[0235] An embodiment of the present disclosure also provides a 3D imaging system; and, as shown in Fig. 8, the system comprises an image acquisition means 61, an image processing means 62 and an image display means 63.
[0237] Image acquisition means 61 comprises a single lens for acquiring images. The image processing means 62 is electrically connected to the image acquisition means 61, to convert the 2D image to be processed generated by the image acquisition means 61 into the 3D image. The image display means 63 is electrically connected to the image processing device 62, for displaying the 3D image emitted by the image processing means 62.
[0239] In the 3D imaging system provided by the embodiment of the present disclosure, the image acquisition means 61 comprises a single lens, which reduces the volume of the image acquisition means 61 as a whole. Furthermore, the single lens imaging means only needs one data line to transmit the acquired image, which can reduce the internal diameter of a connecting line between the imaging means 61 and the image processing means. images 62, so that the 3D imaging system can be applied inside smaller objects, such as human organs, to form 3D images of said human organs, thus further enhancing the scope of application of the imaging system. images 3D.
[0241] Those skilled in the art should understand that by means of the instruction of related hardware, through a computer program, all or part of the processes of the methods of the previous embodiments can be completed; the program can be stored on a computer-readable storage medium, and may comprise the processes of the embodiments of the above methods when the program is run, where the storage medium may be a magnetic disk, an optical disk, a memory of only read (ROM), a random access memory (RAM), a flash memory, a hard disk drive (HDD) or a solid state drive (SSD); and the storage medium can also comprise a combination of the above types of memory.
[0243] The embodiments of the present disclosure have been described with reference to the accompanying drawings, but various modifications and variations will be able to be made by those skilled in the art without departing from the spirit and scope of the present disclosure, and such modifications and variations are within the defined scope. by the appended claims.
权利要求:
Claims (10)
[1]
1. A method of converting a 2D image to a 3D image, comprising the following steps:
acquire a 2D image to be processed;
carry out perspective transformation on the 2D image to be processed to obtain a left eye image and a right eye image, respectively, where the perspective transformation refers to mapping the 2D image to be processed according to a ruler preset;
adjusting the distance between the left eye image and the right eye image according to the result of the perspective transformation; Y
synthesize the left eye image and the right eye image after adjusting the distance.
[2]
The method according to claim 1, wherein the step of carrying out the transformation of the perspective on the 2D image to be processed comprises:
aligning the 2D image to be processed on an image template and extracting the sizes of the 2D image to be processed;
sequentially carrying out linear scaling of the sizes of the respective sides according to the preset rule, to obtain a first image;
reflecting the first image to obtain a second image, where the first image serves as the left eye image and the second image serves as the right eye image; or, the first image serves as the right eye image and the second image serves as the left eye image.
[3]
The method according to claim 2, wherein the step of sequentially carrying out linear scaling on the sizes of the respective sides according to the preset rule comprises:
scan line by line the 2D image to be processed; Y
sequentially carry out linear scaling on the respective lines of the image.
[4]
The method according to claim 2, wherein the step of adjusting the distance between the left eye image and the right eye image according to the result of the perspective transformation comprises:
aligning the left eye image and the right eye image on the image template at the same time; Y
translating the left eye image or the right eye image in a first direction so that the distance between the left eye image and the right eye image is a preset distance.
[5]
The method according to claim 1, wherein the 2D image to be processed is an image frame of a video sequence.
[6]
6. A device for converting a 2D image to a 3D image, comprising:
an acquisition module to acquire the 2D image to be processed;
a perspective transformation module to carry out perspective transformation on the 2D image to be processed to obtain a left eye image and a right eye image, respectively, where perspective transformation refers to mapping the 2D image to be processed according to a preset rule;
an adjustment module for adjusting the distance between the left eye image and the right eye image in accordance with the result of the perspective transformation; Y
a synthesizer module to synthesize the left eye image and the right eye image after adjusting the distance.
[7]
7. The device according to claim 6, wherein the perspective transformation module comprises:
an extraction unit for aligning the 2D image to be processed on an image template and extracting the sizes of the 2D image to be processed;
a linear scaling unit for sequentially carrying out linear scaling of the sizes of the respective sides according to the preset rule, to obtain a first image; Y
a duplicating unit for reflecting the first image and obtaining a second image, where the first image acts as the left eye image and the second image acts as the right eye image; or, the first image serves as the right eye image and the second image serves as the left eye image.
[8]
8. An image processing medium, comprising:
a memory and a processor, which are communicatively connected to each other, where the instructions from the computer are stored in the memory, and the processor is suitable to implement the method of converting 2D images into 3D images of any of claims 1- 5 when executing the computer instructions.
[9]
9. A computer-readable storage medium, where the computer-readable storage medium stores computer instructions to allow a computer to implement the method of converting 2D images to 3D images of any one of claims 1-5.
[10]
10. A 3D imaging system, comprising:
an image acquisition means, having a single lens as a lens for acquiring images;
the image processing means of claim 8, which is electrically connected to the image acquisition means, to convert the 2D image to the 3D image; Y
the image display means, which is electrically connected to the image processing means to display the 3D image.
类似技术:
公开号 | 公开日 | 专利标题
ES2813425A1|2021-03-23|Method and device for converting two-dimensional image into three-dimensional image, and three-dimensional imaging system
US20160295194A1|2016-10-06|Stereoscopic vision system generatng stereoscopic images with a monoscopic endoscope and an external adapter lens and method using the same to generate stereoscopic images
JP2010250452A|2010-11-04|Arbitrary viewpoint image synthesizing device
US10789752B2|2020-09-29|Three dimensional acquisition and rendering
JP4489610B2|2010-06-23|Stereoscopic display device and method
CN106254854B|2018-12-25|Preparation method, the apparatus and system of 3-D image
JP4956658B2|2012-06-20|3D image conversion device and 3D image display device
WO2015196791A1|2015-12-30|Binocular three-dimensional graphic rendering method and related system
KR101433803B1|2014-08-27|Method and apparatus for generating elemental image in integral imaging
TW201114244A|2011-04-16|Method for generating a 3D image
US20210203912A1|2021-07-01|Image Processing Method and Device, and Three-Dimensional Imaging System
CN102973238A|2013-03-20|3D | lens for endoscope device
CN106780759A|2017-05-31|Method, device and the VR systems of scene stereoscopic full views figure are built based on picture
CN103747236A|2014-04-23|3D | video processing system and method by combining human eye tracking
Lin et al.2018|A low-cost portable polycamera for stereoscopic 360 imaging
CN109003294A|2018-12-14|A kind of unreal & real space location registration and accurate matching process
TWI538651B|2016-06-21|Stereo visualization system and method of endoscopy using chromaticity forming method
JP2011182003A|2011-09-15|Panorama camera and 360-degree panorama stereoscopic video system
KR100556830B1|2006-03-10|3D graphical model rendering apparatus and method for displaying stereoscopic image
CN106331670A|2017-01-11|Endoscope stereoscopic visualization system and method by employing chromaticity forming method
JP2020178239A|2020-10-29|All-sky video processing device and program
Chantara et al.2017|Initial depth estimation using EPIs and structure tensor
Fukushima et al.2007|Free viewpoint image generation synchronized with free lisning-point audio for 3-D real space navication
WO2019198784A1|2019-10-17|Light-field image generation system, image display system, shape information acquisition server, image generation server, display device, light-field image generation method and image display method
Audu et al.2013|Computation of virtual environment from stereo-panoramic view
同族专利:
公开号 | 公开日
DE112019002445T5|2021-03-04|
CN108712643A|2018-10-26|
US20210127107A1|2021-04-29|
WO2019218887A1|2019-11-21|
RU2762068C1|2021-12-15|
CN108712643B|2020-02-21|
JP2021524969A|2021-09-16|
CA3100255A1|2019-11-21|
引用文献:
公开号 | 申请日 | 公开日 | 申请人 | 专利标题
WO1997015150A1|1995-10-19|1997-04-24|Sony Corporation|Method and device for forming three-dimensional image|
US20120140027A1|2010-12-06|2012-06-07|Teranex Systems Inc.|Pseudo-3d Forced Perspective Methods And Devices|
CN108712643A|2018-04-27|2018-10-26|苏州新光维医疗科技有限公司|Two dimensional image is converted into the method, apparatus and 3-D imaging system of 3-D view|
CN108737810A|2018-05-23|2018-11-02|苏州新光维医疗科技有限公司|Image processing method, device and 3-D imaging system|
US7573489B2|2006-06-01|2009-08-11|Industrial Light & Magic|Infilling for 2D to 3D image conversion|
RU92595U1|2009-12-24|2010-03-20|Михаил Михайлович Слепко|DEVICE FOR FORMING 3D STEREOSCOPIC IMAGE FROM 2D MONOSCOPIC IMAGE|
CN102598683B|2010-09-17|2015-06-17|松下电器产业株式会社|Stereoscopic video creation device and stereoscopic video creation method|
TWI489414B|2011-07-25|2015-06-21|Realtek Semiconductor Corp|2d to 3d image conversion apparatus and method thereof|
CN102905141A|2011-07-28|2013-01-30|联咏科技股份有限公司|Two-dimension to three-dimension conversion device and conversion method thereof|
CN102438161A|2011-08-19|2012-05-02|四川长虹电器股份有限公司|Method for converting 2D image into 3D image|
JP2013115668A|2011-11-29|2013-06-10|Sony Corp|Image processing apparatus, image processing method, and program|
US20160094837A1|2014-09-30|2016-03-31|3DOO, Inc.|Distributed stereoscopic rendering for stereoscopic projecton and display|
CN104683784A|2015-02-04|2015-06-03|长春理工大学|Full-automatic 2D-to-3D video conversion method based on image shear transformation|
CN105376546A|2015-11-09|2016-03-02|中科创达软件股份有限公司|2D-to-3D method, device and mobile terminal|CN108712643B|2018-04-27|2020-02-21|苏州新光维医疗科技有限公司|Method and device for converting two-dimensional image into three-dimensional image and three-dimensional imaging system|
CN108737810B|2018-05-23|2019-08-06|苏州新光维医疗科技有限公司|Image processing method, device and 3-D imaging system|
CN111988533A|2019-05-23|2020-11-24|川田科技株式会社|Welding assisting method and device|
CN110995997A|2019-12-11|2020-04-10|苏州新光维医疗科技有限公司|Image processing conversion method for single-lens endoscope|
CN111246012A|2020-01-06|2020-06-05|北京小米移动软件有限公司|Application interface display method and device and storage medium|
CN111935473A|2020-08-17|2020-11-13|广东申义实业投资有限公司|Rapid eye three-dimensional image collector and image collecting method thereof|
CN112383765A|2020-11-10|2021-02-19|中移雄安信息通信科技有限公司|VR image transmission method and device|
法律状态:
2021-03-23| BA2A| Patent application published|Ref document number: 2813425 Country of ref document: ES Kind code of ref document: A1 Effective date: 20210323 |
2021-12-17| PA2A| Conversion into utility model|Effective date: 20211213 |
优先权:
申请号 | 申请日 | 专利标题
CN201810391484|2018-04-27|
PCT/CN2019/085688|WO2019218887A1|2018-04-27|2019-05-06|Method and device for converting two-dimensional image into three-dimensional image, and three-dimensional imaging system|
[返回顶部]